//
//  LoginWindowController.h
//  HiQ
//
//  Created by arvintan on 12-7-19.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "LoginDelegate.h"
#import "LoginServer.h"
#import "MainWindowController.h"
#import "RegisterWindowController.h"
#import "SwitchHeadImageWindowController.h"
#import "ServerSettingWindowController.h"


@interface LoginWindowController : NSWindowController <LoginDelegate>
{
    MainWindowController *_mainWindowController;                //主面板controller类
    RegisterWindowController *_registerWindowController;        //注册controller类
    ServerSettingWindowController *_serverSettingWindowController; //设置server ip和port的类
    
    LoginServer *_login;                                        //登陆logic类
}

@property  IBOutlet NSTextField *_textName;
@property  IBOutlet NSSecureTextField *_textPassword;
@property  IBOutlet NSButton    *_buttonLogin;
@property  IBOutlet NSButton    *_buttonRegister;
@property  IBOutlet NSButton    *_buttonHeadImage;


-(IBAction)onLogin:(id)sender;
-(IBAction)onRegister:(id)sender;
-(IBAction)onServerSetting:(id)sender;
//-(IBAction)onSwitchHeadImage:(id)sender;
@end
